Studio-in-the-Cloud

Live video vending refers to the delivery of live video streams to end users in real-time, encompassing all the backend processes that ensure smooth streaming, low latency, and high-quality playback. It involves distributing live streams from an origin server through a Content Delivery Network (CDN) and involves key components such as origin health monitoring, origin shielding, CDN balancing, and Quality of Experience (QoE) monitoring to maintain a robust and efficient live streaming experience.

This deep dive will explore each of these components and how they interact to provide reliable live video delivery.


1. What is Live Video Vending?

Live video vending is the process of distributing live video streams to viewers via a network of servers. After video content is captured, encoded, packaged, and the manifest is generated, it needs to be delivered to the user in real-time.

The goal of live video vending is to ensure seamless delivery, regardless of where the viewer is located, their internet speed, or the number of concurrent viewers. This requires the cooperation of several infrastructure components, such as origin servers, CDNs, and monitoring tools, to ensure efficient video distribution.


2. Key Components of Live Video Vending

Live Origin Server

The origin server is where the live video stream is hosted. It’s the source of the video that gets distributed to edge locations (CDN points of presence) and end-users. The origin server stores the encoded and packaged live stream segments and the manifest files.

Origin Health

Monitoring origin health is critical for live streaming reliability. It involves checking the health and performance of the origin server, ensuring it is responsive and delivering the correct stream. Origin health monitoring helps detect server overload, configuration issues, or network bottlenecks.

Origin Shield

Origin Shield is a caching layer placed between the origin server and the CDN. It acts as a single point of contact for the origin server, ensuring that the origin doesn’t get overwhelmed by requests from multiple edge locations of the CDN. Instead, the CDN requests content from the Origin Shield, and the Origin Shield fetches content from the origin only if necessary.

This setup minimizes the number of requests to the origin server, thus protecting it from traffic spikes, especially during large live events.

CDN Balancing

A Content Delivery Network (CDN) is essential for live video vending, distributing video content across geographically dispersed servers to minimize latency and ensure reliable delivery to viewers worldwide.

CDN balancing refers to the distribution of traffic across multiple CDN nodes (or even across multiple CDN providers) to optimize performance, reduce latency, and handle high loads. It ensures viewers are served by the CDN nodes that are closest to them or those with the best performance.

Tools for CDN Balancing:

Playback QoE Monitoring

Quality of Experience (QoE) monitoring ensures that the viewers are receiving a high-quality playback experience. It tracks various playback metrics and gathers real-time data to monitor the health and quality of the live stream for end-users.

Tools for QoE Monitoring:


3. Workflow of Live Video Vending

Here’s how live video vending works end-to-end:

  1. Live Streaming Source: The video stream is captured (e.g., from a camera) and sent to the live encoder.
  2. Encoding and Packaging: The live video is encoded into different bitrates and resolutions, then packaged using protocols like HLS, DASH, or CMAF.
  3. Origin Server: The encoded video and manifest files are stored on the origin server. This server is the central source for the live stream.
  4. CDN Request: When a viewer requests the live stream, the request is first directed to the CDN. The CDN will attempt to fetch the stream from the nearest edge server.
  5. Origin Shield Request: If the requested video segment is not available on the CDN’s edge server, the request goes to the Origin Shield. The Origin Shield serves as a cache, reducing the load on the origin server.
  6. Origin Request: If the segment is not in the Origin Shield’s cache, it fetches it from the origin server.
  7. Content Distribution: Once fetched, the video segment is cached by the CDN and delivered to the viewer.
  8. Playback Monitoring: The viewer’s playback is monitored for QoE, measuring startup time, buffering, and any bitrate switches or errors.
  9. CDN Balancing: If needed, traffic is re-routed between CDN nodes (or multiple CDNs) to maintain optimal delivery performance.
  10. Ongoing Monitoring: Origin health and CDN performance are continually monitored to detect any potential issues before they affect viewers.

4. Challenges in Live Video Vending

Latency

Delivering live video with low latency is essential, especially for real-time events like sports or news broadcasts. However, distributing video through multiple CDN nodes can introduce delays.

Traffic Spikes

Live events with large audiences can create sudden traffic spikes, overwhelming the origin server or CDN nodes.

Buffering

High network congestion, especially on the viewer’s side, can lead to buffering or degraded video quality.

Origin Overload

If too many CDN requests are directed to the origin server, it can become overloaded, leading to slower response times or server crashes.


Conclusion

Live video vending is a complex but crucial part of live streaming. From origin servers to CDN balancing and QoE monitoring, each component plays a vital role in ensuring that live video streams are delivered efficiently and at high quality. By monitoring origin health, using Origin Shield to offload traffic, and balancing traffic across multiple CDNs, broadcasters can deliver scalable, reliable, and high-quality live streams to audiences worldwide.


5. Further Reading

Dive deep into the concepts